define(function (require, exports, module) {     
    require('jquery');    
    window.WebPDF = {};
    window._ = require('./lib/underscore');
    window.Backbone = require('./lib/backbone');   
    var TypewriterPlugin = require('./plugins/Annot/TypewriterPlugin')
    var PDFRect = require('./math/Rect');   

    
    window._.templateSettings = {
        interpolate: /\{\{(.+?)\}\}/g
    };
    var MainView = require("./views/MainView");  
    var HeaderView = require("./views/headerview");
    var App = Backbone.View.extend({
       el: "body",    
       initialize: function(){
           TypewriterPlugin.init();
           this.mainView = new MainView({el: "#content"});       
           this.headerView = new HeaderView({el: "#title"});
           this.mainView.active();           
       }      
    });
    module.exports = App;
})